package com.hspedu.springcloud.servce;

import com.hspedu.springcloud.entity.Member;
import com.hspedu.springcloud.entity.Result;
import org.springframework.stereotype.Component;

@Component
public class MemberFeignFallbackService implements MemberOpenFeignService{
    @Override
    public Result<Member> getMembertById(Long id) {
        return Result.error("500", "被调用服务异常, 熔断降级，快速返回结果, 防止线程堆积");
    }
}
